package com.wangsai.framework.supersecurity.example.cloud.server.dubbo;

import com.wangsai.framework.supersecurity.core.context.UserContext;
import com.wangsai.framework.supersecurity.example.cloud.commons.MyIUser;
import com.wangsai.framework.supersecurity.example.cloud.dubboapi.UserClient;
import org.apache.dubbo.config.annotation.DubboService;

/**
 * @author Mr.Wang
 * @description
 * @date 2021-08-25 09:29
 */
@DubboService
public class UserClientImpl implements UserClient {

    @Override
    public MyIUser getUser() {
        return UserContext.currentUser(MyIUser.class);
    }
}